/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.vod.net;

import java.net.InetAddress;

/**
 * 
 * @author dRazanakoto
 */
public abstract class Sender extends NetworkWatcher {

	protected InetAddress ip;
	protected int port;

	/**
	 * 
	 * @param ip
	 * @param port
	 */
	public Sender(InetAddress ip, int port) {
		this.ip = ip;
		this.port = port;
	}

	/**
	 * 
	 * @param ip
	 * @param port
	 * @param msg
	 */
	public abstract void send(String msg) throws Exception;

	/**
	 * 
	 * @param msg
	 * @throws Exception
	 */
	public abstract void send(byte[] msg) throws Exception;

	public void close() {
	}

}
